﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClienteReadForm.aspx.cs" 
Inherits="UILGestion.Admin.Cliente.ClienteReadForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>


<%@ Register src="../../VentaAdmin/OrdenVenta/OrdenVentaList2Grid.ascx" tagname="OrdenVentaList2Grid" tagprefix="uc2" %>


<%@ Register src="../../VentaAdmin/DocumentoVenta/DocumentoVentaListGrid.ascx" tagname="DocumentoVentaListGrid" tagprefix="uc3" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
    <script src="../../Scripts/jquery-1.5.2.min.js" type="text/javascript"></script>
   <script src="../../Scripts/SearchResult.js" type="text/javascript"></script>
 

</head>
<body>


    <form id="form1" runat="server">
     <input id="internalID" type="hidden" runat="server" />
   
  <uc1:menuCtrl ID="menuCtrl1" runat="server" />
    
      <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
      EnableScriptGlobalization="true"  
     EnablePartialRendering="true" />
    
    <asp:Panel ID="pnlMain" runat="server"
  
                CssClass="Heading secTitle AreaHeading ms-crm-List-Header "  >
<asp:Label ID="Label2" runat="server" Text="REGISTRO CLIENTE" 
            style="font-size: large; color: #960818"></asp:Label>
</asp:Panel>
     
  <asp:Panel ID="PanelButtom" runat="server"    class="ms-crm-Form-Body" >
                 <table  width="100%">
                 <tr>
                 <td  width="80%">
                 
   <table >
<tr>

        <td>
    <asp:Button ID="refreshBTN" runat="server" Text="Restablecer"   CssClass="ms-crm-List-Header" onclick="button" 
          /></td> 
           <td>
    <asp:Button ID="EditarBTN" runat="server" Text="Editar"   CssClass="ms-crm-List-Header" onclick="button" 
          /></td> 
        <td>
    <asp:Button ID="nuevoBTN" runat="server" Text="Nuevo"   CssClass="ms-crm-List-Header"  onclick="button"
          /></td> 

          
        <td>
    <asp:Button ID="eliminarBTN" runat="server" Text="Eliminar"   CssClass="ms-crm-List-Header"  onclick="button"
          /></td> 
 
</tr>
</table>
                 </td>
                 <td>
               
                     <asp:Button ID="anteriorBTN" runat="server" CssClass="ms-crm-List-Header" 
                         onclick="button" Text="Anterior" />
                         </td>
                         <td>
                     <asp:Button ID="siguienteBTN" runat="server" CssClass="ms-crm-List-Header" 
                         onclick="button" Text="Siguiente" />
               
                 </td>
                 </tr>
                 </table>
 </asp:Panel>
  <asp:Panel ID="PanelBody" runat="server"  BackColor="white" >            
                <table>
                   
                    <tr>
                        <td rowspan="11" valign="top" >
                     
                       <asp:UpdatePanel runat="server" ID="empresaUP" UpdateMode="Conditional">
               <ContentTemplate>
               
                   <asp:Panel ID="empresaPanel" runat="server">
                                                                                   <table>

             <tr>
              <td align="right" width="100px" >
                            Razon social:</td>
             <td >
            

                            <asp:Label ID="razonSocialTextBox" runat="server" ></asp:Label>
               </td>
             </tr>

                        <tr>
                        
                        <td align="right" width="100px" >RUC:</td>
                        <td >
                            <asp:Label ID="RUCTXT" runat="server"></asp:Label>
                            </td>
                    </tr>

  </table>
                       </asp:Panel>       
                       <asp:Panel ID="personaPanel" runat="server">
                                     <table>
                        <tr>
                        <td align="right" width="100px">Nombre:</td>
                        <td>
                            <asp:Label ID="nombresTXT" runat="server" ></asp:Label>
                            </td>
                        
                        </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Apellido Paterno:
                                             </td>
                                             <td>
                                                 <asp:Label ID="apellidoPatTxt" runat="server" ></asp:Label>
                                             </td>
                                         </tr>
                        <tr>
                        <td align="right" width="100px">Apellido Materno: </td>
                        <td><asp:Label ID="apellidoMatTXT" runat="server" ></asp:Label></td>
                        
                        </tr>
                            <tr>
                                <td align="right" width="100px">
                                    Nacionalidad:</td>
                                <td>
                                    <asp:Label ID="nacionalidadDDL" runat="server" >
                                    </asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="100px">
                                    Documento:</td>
                                <td>
                                    <asp:Label ID="tipoDocumentoDDL" runat="server" >
                                    </asp:Label>
                                     
                                    <asp:HyperLink ID="documentoIdentidadHLK" runat="server" Target="_blank"  ></asp:HyperLink>
                                </td>
                            </tr>

                            <tr>
                                <td align="right" width="100px">
                                    Ocupacion:</td>
                                <td>
                                    <asp:Label ID="ocupacionTXT" runat="server" ></asp:Label>
                                </td>
                            </tr>

                            <tr>
                                <td align="right" width="100px">
                                    Genero:</td>
                                <td>
                                    <asp:Label ID="GeneroDDL" runat="server" >
                                   
                                    </asp:Label>
                                </td>
                            </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Estado Civil:</td>
                                             <td>
                                                 <asp:Label ID="estadocivilLBL" runat="server">
                                   
                                    </asp:Label>
                                             </td>
                                         </tr>
                                 <tr>
                                <td align="right" width="100px">
                                    Conviviente</td>
                                <td>
                                    <asp:CheckBox ID="convivienteCHK" runat="server"  Enabled="false"/>
                                </td>
                            </tr>
                           
                                         <tr>
                                             <td align="right" width="100px">
                                                 Cónyuge:</td>
                                             <td>
                                                 <asp:Label ID="conyugeTXT" runat="server"></asp:Label>
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 DNI Conyuge:</td>
                                             <td>
                                                 <asp:Label ID="dniconyugeTXT" runat="server"></asp:Label>
                                             </td>
                                         </tr>
                           
                        </table>
                                  </asp:Panel>       
                        </ContentTemplate>
                      
               </asp:UpdatePanel>


                        </td>
                        <td width="130px" >
                            &nbsp;</td>
                        <td >
                            &nbsp;</td>
                    </tr>
                  
               
                    <tr>
                        <td   align="right" width="130px">
                            Correo Electronico:</td>
                        <td  >
                            <asp:Label ID="emailTextBox" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td   align="right" width="130px">
                            Correo Alternativo.:</td>
                        <td>
                            <asp:Label ID="correoAlternativoTXT" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td   align="right" width="130px">
                         
                                    web:</td>
                        <td>
                            <asp:Label ID="webTXT" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td   align="right" width="130px">
                            Telefono:</td>
                        <td>
                            <asp:Label ID="telefonoTxt" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td   align="right" width="130px">
                            Celular:</td>
                        <td>
                            <asp:Label ID="celularTXT" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td   align="right" width="130px">
                             Fax:</td>
                        <td>
                            <asp:Label ID="faxTXT" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td   align="right" width="130px">
                            Activo:</td>
                        <td>
                            <asp:CheckBox ID="bitActivoCHK" runat="server" Enabled="False" />
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td   align="right" width="130px">
                            Comentario:</td>
                        <td>
                            <asp:Label ID="comentarioTXT" runat="server" TextMode="MultiLine"></asp:Label>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td align="right"   width="130px">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            
 

  <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0"><asp:TabPanel ID="DireccionTPNL" runat="server" HeaderText="Direccion">
     <ContentTemplate>
       <table class="ms-crm-MaxWidth">
         <tr>
             <td class="ms-crm-TextAlign-TrailingEdge" width="100px" align="right"  valign="top">
                 Direccion:</td>
             <td width="350px"  valign="top">
                 <asp:Label ID="direccionLBL" runat="server" ></asp:Label>
             </td>
             <td rowspan="2" valign="top">
                         <table class="ms-crm-MaxWidth">
                             <tr>
                                 <td width="100px" align="right">
                                     Departamento:</td>
                                 <td>
                                     <asp:Label ID="departamentoLBL" runat="server"></asp:Label>
                                 </td>
                             </tr>
                             <tr>
                                 <td align="right" width="100px">
                                     Provincia:</td>
                                 <td class="style1">
                                     <asp:Label ID="provinciaLBL" runat="server"></asp:Label>
                                 </td>
                             </tr>
                             <tr>
                                 <td width="100px" align="right">
                                     Distrito:</td>
                                 <td>
                                     <asp:Label ID="distritoLBL" runat="server"></asp:Label>
                                     
                                 </td>
                             </tr>
                             <tr>
                                 <td align="right"  width="100px">
                                     Urbanizacion:</td>
                                 <td class="style2">
                                     <asp:Label ID="urbanizacionTXT" runat="server"></asp:Label>
                                 </td>
                             </tr>
                         </table>
             </td>
         </tr>
         <tr>
             <td class="ms-crm-TextAlign-TrailingEdge" width="100px"  valign="top">
                 Referencia:</td>
             <td width="350px"  valign="top">
                 <asp:Label ID="referenciaLBL" runat="server" ></asp:Label>
             </td>
         </tr>
     </table>
     </ContentTemplate>
     </asp:TabPanel><asp:TabPanel ID="OrdenVentaTPNL" runat="server" HeaderText="Orden Venta">
     <ContentTemplate>

     <asp:UpdatePanel runat="server" ID="ordenCompraUPNL" UpdateMode="Conditional">
     <ContentTemplate>
     
     
    <uc2:OrdenVentaList2Grid ID="OrdenVentaList2Grid1" runat="server" DataSourceID="localizacionStrListODS" />
     
     <asp:ObjectDataSource ID="localizacionStrListODS"  runat="server"
             EnablePaging="True"
              SelectCountMethod="Count" 
              SortParameterName="sortExpression"
             SelectMethod="Execute" 
             typeName="BOL.Ventas.GetOrdenVentaList" >
     <SelectParameters>
                <asp:querystringparameter Name="idCliente" querystringfield="id" Type="Int32" />
                <asp:Parameter Name="startRowIndex" Type="Int32" />
                <asp:Parameter Name="maximumRows" Type="Int32" />
                <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>
               </ContentTemplate>
     </asp:UpdatePanel>
     </ContentTemplate>
     </asp:TabPanel><asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Documento Venta">
     <ContentTemplate>

     <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
     <ContentTemplate>
       <uc3:DocumentoVentaListGrid ID="DocumentoVentaListGrid1" runat="server" DataSourceID="documentoStrListODS" />
            <asp:ObjectDataSource ID="documentoStrListODS"  runat="server"
                         EnablePaging="True"
                          SelectCountMethod="Count" 
                          SortParameterName="sortExpression"
                         SelectMethod="Execute" 
                         typeName="BOL.Ventas.GetDocumentoVentaList" >
              <SelectParameters>
                    <asp:querystringparameter Name="idCliente" querystringfield="id" Type="Int32" />
                    <asp:Parameter Name="startRowIndex" Type="Int32" />
                    <asp:Parameter Name="maximumRows" Type="Int32" />
                    <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>
               </ContentTemplate>
     </asp:UpdatePanel>
     </ContentTemplate>
     </asp:TabPanel></asp:TabContainer>
 
 </asp:Panel>
   
    
   
   
    
    </form>
   
    </body>
</html>
